package com.coolingme.kpi;

/**
 * CEO只关心KPI
 *
 * @author wangyue
 * @date 2020/10/10 10:15
 */
public class CEOVisitor implements IVisitor {
    @Override
    public void visitor(Engineer engineer) {
        System.out.println(engineer.name + "的KPI为：" + engineer.kpi);
    }

    @Override
    public void visitor(Manager manager) {
        System.out.println(manager.name + "的KPI为：" + manager.kpi);
    }
}
